<template>
    <div class="not-found-container">
        <div class="not-found-content">
            <h1>404</h1>
            <h2>页面未找到</h2>
            <p>您尝试访问的页面不存在或已被移动</p>
            <el-button type="primary" @click="goBack">返回首页</el-button>
        </div>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
    router.push('/home')
}
</script>

<style scoped>
.not-found-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f7fb;
}

.not-found-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

h1 {
    font-size: 120px;
    color: #4086f4;
    margin: 0;
    line-height: 1;
}

h2 {
    color: #333;
    margin-top: 10px;
    margin-bottom: 20px;
}

p {
    color: #666;
    margin-bottom: 30px;
}
</style>
